package com.edu.hre.struts.form.pim;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.struts.action.ActionForm;
import org.apache.struts.util.LabelValueBean;

import com.edu.hre.common.utils.CommonUtils;

public class EmpExperienceUpdateForm extends ActionForm {
	
	private int id = 0;
	private int empNumber;

	private String company = "";
	private String jobTitle;
	private Date fromDate;
	private Date toDate;
	private String comment;

	private String message = "";
	private boolean isAddNew = true;
	
	private List<LabelValueBean> allRelationships = new ArrayList<LabelValueBean>();
	
	public EmpExperienceUpdateForm() {

	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public boolean isAddNew() {
		return isAddNew;
	}

	public void setAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}
	
	public boolean getIsAddNew() {
		return isAddNew;
	}

	public void setIsAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}

	public List<LabelValueBean> getAllRelationships() {
		return allRelationships;
	}

	public void setAllRelationships(List<LabelValueBean> allRelationships) {
		this.allRelationships = allRelationships;
	}

	public int getEmpNumber() {
		return empNumber;
	}

	public void setEmpNumber(int empNumber) {
		this.empNumber = empNumber;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getJobTitle() {
		return jobTitle;
	}

	public void setJobTitle(String jobTitle) {
		this.jobTitle = jobTitle;
	}

	public String getFromDate() {
		return CommonUtils.dateToString(fromDate);
	}

	public void setFromDate(String fromDate) {
		this.fromDate = CommonUtils.stringToDate(fromDate);
	}

	public String getToDate() {
		return CommonUtils.dateToString(toDate);
	}

	public void setToDate(String toDate) {
		this.toDate = CommonUtils.stringToDate(toDate);
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}
}
